package wsi.gui.resolve;

import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Priority;
import javafx.scene.layout.VBox;

import org.rygh.gui.comp.Button;
import org.rygh.gui.comp.Label;
import org.rygh.gui.model.presenter.FPresenter;
import org.rygh.gui.view.HView;

public class JudgeBottomView extends HView {

	private final Label upLabel = new Label("Information");
	private final Label downLabel = new Label("Information");

	public JudgeBottomView(FPresenter presenter) {
		super(presenter);
		init();
	}

	public Label getDownLabel() {
		return downLabel;
	}

	public Label getUpLabel() {
		return upLabel;
	}

	private void init() {
		setBackgroundColor("#336699");
		view.setAlignment(Pos.CENTER);
		view.setPrefHeight(60);
		view.setPadding(new Insets(0, 20, 0, 20));
		view.setSpacing(10);

		upLabel.setWhite();
		downLabel.setWhite();

		VBox vbox = new VBox(4);
		vbox.setAlignment(Pos.CENTER_LEFT);

		vbox.getChildren().add(upLabel);
		vbox.getChildren().add(downLabel);

		add(vbox);

		HBox.setHgrow(vbox, Priority.ALWAYS);

		add(new Button("_Correct", presenter, "correct"));
		add(new Button("_Wrong", presenter, "wrong"));
		add(new Button("_Next", presenter, "next"));
		add(new Button("_View", presenter, "view"));
		add(new Button("Compute", presenter, "compute"));
	}
}
